package com.sfh.gd.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.RelationOneToOne;
import com.sfh.gd.domain.entity.MemberDO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class GameTeamVO {

    private Long teamId;
    /**
     * 队伍编号
     */
    private String code;
    /**
     * 赛事ID
     */
    private Long gameId;
    /**
     * 积分
     */
    private Long scoreValue;

    /**
     * 状态 1 正常 -1 淘汰 2禁赛 3比赛中 4等待中 5已晋级
     */
    private Integer state;
    /**
     * 轮次
     */
    private Integer roundCount;
    /**
     * 队员1-会员
     */
    private MemberVO member1;

    /**
     * 队员2-会员
     */
    private MemberVO member2;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
}
